package Bruce.GuavaDemo.company;

public class Customer {
	 private  int id;
	    private String  name;

	    //无参构造方法  每个类默认都会有
	    public Customer(){}

	    //有参构造方法
	    public Customer(String name,int id){
	        this.id=id;
	        this.name=name;
	    }
	    //属性id、name的set、get方法
	    public int getId() {
	        return id;
	    }
	    public void setId(int id) {
	        this.id = id;
	    }
	    public String getName() {
	        return name;
	    }
	    public void setName(String name) {
	        this.name = name;
	    }

		@Override
		public String toString() {
			return "Customer [id=" + id + ", name=" + name + "]";
		}

}
